broadway: Sync surface updates with paint clock
authorAlexander Larsson <alexl@redhat.com>
Thu, 28 Mar 2013 18:22:42 +0000 (19:22 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 29 Mar 2013 13:09:47 +0000 (14:09 +0100)
commit71b4557210f07a4e300e8c36740f6b8004f82a54
tree60e67264169fee70012175e90b3aa3d4a525ecfd
parenta20cb3dd251c276a839ef3ba88e1dfe2b4f37ede
broadway: Sync surface updates with paint clock

We now only update surface data after we have painted. Before we painted
in an idle, which meant we might send black data some times if we e.g.
resized the window and had not painted yet. Also, it means we're updating
less often to the daemon, saving resources.

We still have to queue a flush in the idle for non-draw operations,
otherwise e.g. resize of a toplevel will never be flushed if the clock
is frozen (e.g. during toplevel resize).
gdk/broadway/gdkwindow-broadway.c